package main

import "fmt"

type Person struct {
	name string
	age int
}

func (p Person) getPersonInfo1()  {
	fmt.Println("p =", p)
}
func (p *Person) getPersonInfo2()  {
	fmt.Println("p =", *p)
}

func main() {
	p := Person{"lucy", 10}
	method1 := Person.getPersonInfo1
	method2 := (*Person).getPersonInfo2

	method1(p)
	method2(&p)
}
